1.创建一个 util 包,存放公共的工具类。

2.在 uitl 文件夹中创建一个 NeyUtil 类。

3.在 NetUtil 类中实现 getNetworkState 方法。

results matching ""

    No results matching ""